package dao

// Follow 关注单列表
type Follow struct {
	Id       int64 `gorm:"autoIncrement,primaryKey"`
	Follower int64 `gorm:"uniqueIndex:er_ee"` //去重
	Followee int64 `gorm:"uniqueIndex:er_ee;index"`
	//软删除
	Status uint8

	Ctime int64
	Utime int64
}

// FollowStatics 关注统计表
type FollowStatics struct {
	Id        int64 `gorm:"autoIncrement,primaryKey"`
	Uid       int64 `gorm:"unique"`
	Followers int64
	Followees int64

	Ctime int64
	Utime int64
}

const (
	FollowRelationStatusUnknown uint8 = iota
	FollowRelationStatusActive
	FollowRelationStatusInactive
)

func (Follow) TableName() string {
	return "follow"
}
func (FollowStatics) TableName() string {
	return "follow_statics"
}
